<template>
  <el-checkbox @change="change" :checked="rowData.checked"><slot></slot></el-checkbox>
</template>
<script>
export default {
  name: 'QPCheckbox',
  props: {
    rowData: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  data() {
    return {}
  },
  methods: {
    change(val) {
      let param = {
        val: val,
        sort: this.rowData.sort
      }
      this.$emit('checkChange', param)
    }
  }
}
</script>
